package com.ymko.knfimage.data;

import java.util.ArrayList;

public class AddressInfo
{
    private int BuKaID = 0 ;    
    private ArrayList<Integer> Id = null;
    private ArrayList<String> Name = null;
    private ArrayList<String> Number = null; 
    private ArrayList<Integer> Type = null;
    private int favor = 0;
    
    public void setFavor(int favor)
    {
        this.favor = favor;        
    }
    public void addFavor(int favor)
    {
        this.favor += favor;        
    }
    public int getFavor()
    {
        return favor;        
    }
    
    public AddressInfo(int buKaID,int id, String name, String number, int type){
        
        this.BuKaID = buKaID;
        this.Id = new ArrayList<Integer>();
        this.Name = new ArrayList<String>();
        this.Number = new ArrayList<String>();
        this.Type = new ArrayList<Integer>();

        Id.add(id);
        Name.add(name);
        Number.add(number);
        Type.add(type);
    }
    public int getBuKaID()
    {
        return BuKaID;        
    }
    public void addId(int id)
    {
        Id.add(id);        
    }
    public void addName(String name)
    {
        Name.add(name);        
    }
    public void addNumber(String number)
    {
        Number.add(number);        
    }
    public void addType(int type)
    {
        Type.add(type);        
    }
    
    public ArrayList<Integer> getId()
    {
        return Id;        
    }
    public ArrayList<String> getName()
    {
        return Name;        
    }
    public ArrayList<String> getNumber()
    {
        return Number;        
    }
    public ArrayList<Integer> getType()
    {
        return Type;        
    }
    
    
}
